SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 37079: Arguments specified with the HTMLSTYLE= attribute are not honored when using the ODS HTML destination

DetailsAboutRate It

Style properties specified with the HTMLSTYLE= style attribute using style overrides within procedures are not passed to the file with the HTML destination in SAS® 9.2. No error messages are generated; however, the file is not updated with the style information specified with the HTMLSTYLE= attribute.

To circumvent the problem, do one of the following:

  1. Use the ODS MSOFFICE2K destination rather than the ODS HTML destination.

  2. Mimic the HTMLSTYLE= attribute by using the TAGATTR= attribute to pass the value plus the STYLE= which is added by the attribute as shown below.
    data one; x="0001"; run; ods html file="c:\temp\temp.xls" ; proc report data=one nowd; define x / style(column)={tagattr="style=""mso-number-format:\@"""}; run; ods html close;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.219.39.2 TS2M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows XP 64-bit Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft® Windows® for x649.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.219.39.2 TS2M09.3 TS1M0
Microsoft Windows Server 20089.219.39.2 TS2M09.3 TS1M0
Microsoft Windows XP Professional9.219.39.2 TS2M09.3 TS1M0
Windows Vista9.219.39.2 TS2M09.3 TS1M0
64-bit Enabled AIX9.219.39.2 TS2M09.3 TS1M0
64-bit Enabled HP-UX9.219.39.2 TS2M09.3 TS1M0
64-bit Enabled Solaris9.219.39.2 TS2M09.3 TS1M0
HP-UX IPF9.219.39.2 TS2M09.3 TS1M0
Linux9.219.39.2 TS2M09.3 TS1M0
Linux for x649.219.39.2 TS2M09.3 TS1M0
OpenVMS on HP Integrity9.219.39.2 TS2M09.3 TS1M0
Solaris for x649.219.39.2 TS2M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.